﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Menu2.ascx.cs" Inherits="HZ.DrugTrade.Web.Controls.Menu2" %>
<asp:Repeater ID="rptMain" runat="server" 
    onitemdatabound="rptMain_ItemDataBound">
    <HeaderTemplate>
<ul id="menu">
    <li>
        <span>欢迎信息</span>
        <ol>
            <li><a><img alt="" src="./lib/images/smile.gif"/> <%=GetTimeSpanNick() %>好！<%=HZ.DrugTrade.Web.CurrentAccount.GetUser().UserName%></a> 
            <a><img alt="" src="./lib/images/group.gif"/> 当前角色：<%=HZ.DrugTrade.Web.CurrentAccount.GetUser().UserRole.RoleName %></a>
            </li>   
         </ol>
    </li>
    </HeaderTemplate>
    <ItemTemplate>
    <li>
        <div><%#Eval("MenuName") %></div>
        <ul>
                <asp:Repeater ID="rptChild" runat="server">
                    <ItemTemplate>
            <li><a href="#" onclick="CallFunc('<%#Eval("WebPath") %>','FORM',null);"  ><%#Eval("MenuName") %></a> </li>
                    </ItemTemplate>
                </asp:Repeater>
         </ul>
    </li>
    </ItemTemplate>
    <FooterTemplate>
</ul>
    </FooterTemplate>
</asp:Repeater>
